package com.usian.apis.wemedia;

import com.usian.model.common.dtos.PageResponseResult;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmMaterialDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@Api(value = "自媒体素材管理",tags = "MaterialManage ",description = "素材管理API")
public interface WmMaterialControllerApi {
    /**
     *
     * @param file  MultipartFile  请求类型： post
     * @return
     */
    @ApiOperation("上传图片")
    ResponseResult uploadPicture(@RequestPart("file") MultipartFile file,@PathVariable Integer state);


    /**
     * 素材列表查询
     * @param dto
     * @return
     */
    @ApiOperation(value = "查询图片信息")
    public PageResponseResult list (WmMaterialDto dto);

    /**
     * 根据ID删除图片
     * @param
     * @return
     */
    @ApiOperation(value = "根据ID删除图片")
    ResponseResult delById(Integer id);

    /**
     * 取消收藏
     * @param id
     * @return
     */
    @ApiOperation(value = "取消收藏")
    ResponseResult cancleCollectionMaterial(Integer id);

    /**
     * 收藏图片
     * @param id
     * @return
     */
    @ApiOperation(value = "收藏图片s")
    ResponseResult collectionMaterial(Integer id);
}
